﻿<%@ WebHandler Language="C#" Class="Handler" %>

using System;
using System.Web;
using System.Xml.Linq;
public class Handler : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.Charset = "utf-8";
        context.Response.ContentType = "application/xml";
        string guid = Guid.NewGuid().ToString();
        XDocument doc = new XDocument();
        XElement root = new XElement("root");
        
        XElement XGuid = new XElement("guid",guid);
        root.Add(XGuid);
        doc.Add(root);
        context.Response.Write(doc.ToString());
        context.Response.End();
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}